<?php echo form_open(base_url().'journal/admin/students/edit/'.$id_student); ?>
  <fieldset>
     <p><select name="id_group">
       	 <?foreach ($groups as $result){?>
	     <option <?if($result['id'] == $id_group) echo "selected";?> value="<?=$result['id']?>"><?=$result['code']?></option>
	     <?}?>
   	 </select></p>
  	 <?foreach($name_student as $result) {?>
     <p><font color=#C40000>*</font> <?=lang('name_student')?>:</p><input name="name" type="text" autocomplete="on" maxlength="60" value="<?if($result['name']) echo $result['name']; else echo set_value('name');?>" required> <?echo form_error('name');?>
     <p><font color=#C40000>*</font> <?=lang('admin_login')?>:</p><input name="login" type="text" autocomplete="on" maxlength="30" value="<?if($result['login']) echo $result['login']; else echo set_value('login');?>" required> <?echo form_error('login');?>
     <p><font color=#C40000>*</font> <?=lang('admin_password')?>:</p><input name="password" type="password" autocomplete="on" maxlength="30" required> <?echo form_error('password');?>
     <p><font color=#C40000>*</font> <?=lang('admin_repassword')?>:</p><input name="repassword" type="password" autocomplete="on" maxlength="30" required> <?echo form_error('repassword');?>
     <p><font color=#C40000></font> <?=lang('email')?>:</p><input name="email" type="text" autocomplete="on" maxlength="30" value="<?if($result['email']) echo $result['email']; else echo set_value('email');?>"> <?echo form_error('email');?>
     <p><input name="edit_student_submit" type="submit" value="<?=lang('admin_button_update')?>"></p>
     <?}?>
  </fieldset>
</form>